<script>
// #ifdef APP-PLUS
import APPUpdate from '@/uni_modules/zhouWei-APPUpdate/js_sdk/appUpdate';
// #endif
export default {
    onLaunch: function() {
        console.log('App Launch')
        // 缓存设备信息
        uni.setStorageSync('systemInfo', this.$tools.systemInfo())
        // #ifdef APP-PLUS
        // 禁止横屏
        plus.screen.lockOrientation("portrait-primary");  
        // 检测更新
        APPUpdate();
        // #endif
    },
    onShow: function() {
        console.log('App Show')
    },
    onHide: function() {
        console.log('App Hide')
    }
}
</script>

<style lang="scss">
	// 引入uview
	@import "uview-ui/index.scss";


	/*每个页面公共css */
    page{
        font-family: PingFangSC-Medium, PingFang SC !important;
        background-color:#FBFCFC;
        box-sizing: border-box;
        font-size: 30rpx;
        color: #162233;
    }
    uni-view,view{
        font-family: PingFangSC-Medium, PingFang SC !important;
        box-sizing: border-box;
        color: #162233;
        font-size: 30rpx;
	}
    .uni-b{
        border: 1rpx solid red !important;
    }
    .uni-g{
        border: 1rpx solid green !important;
    }


    // 版心
    .uni-area{
        padding: 0 30rpx;
        box-sizing: border-box;
    }
    // 字体加粗
    .font-bold{
        font-weight: bold;
    }
    // 颜色
    .uni-main-color{
        color: #162233;
    }
    .uni-higt-color{
        color: $uni-higt-error;
    }
    .uni-dec-color{
        color: $uni-text-color-dec;
    }
    .uni-gery-color{
        color: $uni-text-color-grey;
    }
    .uni-success-color{
        color: $uni-color-success;
    }
    .uni-inverse-color{
        color: $uni-text-color-inverse;
    }
    // 输入框占位文本样式
    .uni-placeholder{
        font-family: PingFangSC-Medium, PingFang SC !important;
        font-size: 28rpx;
    }
    // 盒子阴影
    .uni-shadow{
        border-radius: 16rpx;
        border: 1rpx solid rgba(0, 0, 0, 0.02);
        border-bottom: none;
        padding: 30rpx;
        background: #fff;
        box-shadow: 0px 4px 8px -8px rgba(0, 0, 0, 0.2) !important;
    }
    // 背景图片自适应
    .uni-bg-img{
        background-attachment:fixed !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    // 忘记密码步骤条
    .forget-password-steps{
        .u-steps-item {
            .u-text__value--main,.u-text__value--content{
                font-size: 32rpx !important;
            }
            .u-text__value--tips{
                font-size: 24rpx !important;
                margin-top: 10rpx !important;
            }
            .u-steps-item__wrapper__circle{
                width: 48rpx;
                height: 48rpx;
            }
        }
    }
    // 小竖线
    .uni-line{
        width: 10rpx;
        height: 32rpx;
        background: #13A4FE;
        opacity: 1;
        border-radius: 8rpx;
    }
    // 查看按钮
    .uni-look-btn{
        width: auto !important;
        height: 50rpx !important;
        margin: 0 !important;
        font-family: PingFangSC-Medium, PingFang SC !important;
        color: $uni-color-warning !important;
    }
    // 统计分析分段器
    .uni-total-analyse{
        .u-subsection{
            overflow: auto !important;
            width: auto !important;
            .u-subsection__item{
                padding: 0 30rpx;
                .u-subsection__item__text{
                    white-space:nowrap;
                }
            }
        }
    }
    // 修改密码表单
    .uni-edit-password{
        .u-form-item__body{
            padding: 10rpx 0 0 0 !important;
            .u-input{
                padding: 20rpx 0 !important;
                border-color: #E8E8E8 !important;
            }
        }
    }
    // 图表
    .uni-echarts-box{
        background: $uni-text-color-inverse;
        position: relative;
        padding: 20rpx 30rpx 10rpx 10rpx;
        // 单位
        .unit{
            position: absolute;
            top: 42rpx;
            right: 30rpx;
            font-size: 26rpx;
            color: $uni-text-color-dec;
        }
    }
    // 页面头部下拉选择以及固定在头部的内容
    #uniselect,#headerEle,.uniselect,.headerEle{
        background: #fff;
        padding: 0 30rpx;
        box-shadow: 0px 5px 10px -10px rgba(0, 0, 0, 0.5) !important;
        position: relative;
        z-index: 997;
    }
    // swiper可上下滚动
    uni-swiper .uni-swiper-wrapper {
        overflow-y: auto !important;
    }
    uni-swiper-item {
        overflow-y: auto !important;
    }
    // 固定于底部的内容
    .uni-bottom{
        width: 100%;
        height: 182rpx;
        background: $uni-text-color-inverse;
        box-shadow: 0px -5px 10px -10px rgba(0, 0, 0, 0.5); 
        position: fixed;
        left: 0;
        bottom: 0;
        padding: 30rpx;
        .btn1,.bnt2,.btn3,.btn4{
            border-radius: 10rpx !important;
        }
        .btn1{
            width: 210rpx !important;
        }
        .btn2,.btn3,.btn4{
            width: 330rpx !important;
        }
        // .u-button__text{
        //     color: $uni-text-color-dec !important;
        // }
        // .btn4{
        //     .u-button__text{
        //         color: $uni-text-color-inverse !important;
        //     }
        // }
    }
    // 批量删除提交
    .uni-add{
        .popup-content{
            background: #fff !important;
            box-shadow: 0px -5px 10px -10px rgba(0, 0, 0, 0.5) !important; 
            .btn{
                width: 330rpx !important;
                height: 80rpx !important;
            }
        }
    }
    // 设置打卡区域
    .map-popup .u-popup__content{
        border-radius: 32rpx 32rpx 0 0;
    }
    uni-modal{
        z-index: 100000 !important
    }
</style>
